package com.ds.duizhang20221212.dto;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Objects;

/**
 * <pre>
 {
 "applicationDate": "2020-10-18 22:01:59",
 "applyName": "admin",
 "auditedTime": "2020-10-18 22:01:59",
 "balanceAmount": "0",
 "cityName": "صبيا",
 "currency": "SAR",
 "depotName": "东莞一仓",
 "handlingStatus": "已审核",
 "manualAudited": "NO",
 "orderNumber": "CSA832520200915125336648",
 "payName": "COD",
 "qty": "10",
 "refundStatus": "无需退款",
 "returnOrderId": "6405",
 "returnStatus": "已退回待收货",
 "returnTypeDesc": "仅退货",
 "returnedReasonI": "Cancellation Reason",
 "returnedReasonII": "商品拒签退回",
 "shippingName": "Aramex-HK",
 "totalAmount": "238.7",
 "totalPrice": "238.7",
 "totalPriceBalance": "238.7",
 "trackingNumber": "33284572333",
 "wholeReturnDesc": "整单退"
 }
 </pre>
 */
@Getter
@Setter
@EqualsAndHashCode
public class ErpRefundExcelDTO implements Serializable {
    private static final long serialVersionUID = -6673820021159180080L;

    private String ApplicationDate;
    private String ReturnOrderId;
    private String OrderNumber;
    private String HandlingStatus;
    private String ReturnStatus;
    private String RefundStatus;
    private String TotalPrice;
    private String BalanceAmount;
    /**
     * 总金额包含余额
     */
    private String TotalPriceBalance;
    private String qty;
    private String TrackingNumber;
    private String CardID;
    private String PayName;
    private String PayChannelName;
    private String returnedReasonI;
    private String returnedReasonII;
    private String shippingName;
    private String cityName;
    private String pinCode;
    private String depotName;
    private String wholeReturnDesc;
    private String applyName;
    private String manualAudited;
    private String auditedTime;
    private String returnTypeDesc;
    private String receiptTime;
    private String billNo;
    private String totalAmount;
    private String currency;
    private String bankInfo;

    public boolean simpleEquals(ErpRefundExcelDTO o){
        return Objects.equals(this.getOrderNumber(), o.getOrderNumber())
                && Objects.equals(this.getReturnOrderId(), o.getReturnOrderId());
    }
}
